import request from '@/utils/request'


export function pageList(data, pageInfo) {
    return request({
        url: '/enact/task/page',
        method: 'post',
        data,
        pageInfo
    })
}

export function add(data) {
    return request({
        url: '/enact/task/add',
        method: 'post',
        data
    })
}

export function remove(id) {
    return request({
        url: '/enact/task/delete/' + id,
        method: 'post',
    })
}
export function detail(id) {
    return request({
        url: '/enact/task/detail/' + id,
        method: 'get',
    })
}
